const path = require('path');

module.exports = {
    devtool: 'eval-source-map',

    mode: 'development',

    entry: './src/index.js',

    output: {
        path: path.resolve(__dirname, 'dist'),
        filename: "bundle.js"
    },

    devServer: {
        port: 8081,
        compress: false,
        open: true,
        static: path.resolve(__dirname, 'dist'),
        devMiddleware: {
            publicPath: '/xuni/'
        }
    }
}


